package com.k.kpp;

import com.k.kpp.anno.ExcelProperty;

import java.io.Serializable;

/**
 * @author kivil
 */
public class User implements Serializable {

    private static final long serialVersionUID = -8131410946122080298L;
    @ExcelProperty(value = "用户名",index = 0)
    private String username;
    @ExcelProperty(value = "密码",index = 1)
    private String password;
    @ExcelProperty(value = "年龄",index = 2)
    private Integer age;
    @ExcelProperty(value = "性别",index = 3)
    private int type;

    public User() {
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
